/**
 * Tree转换为List
 * @param {Array} list
 * @param {String} path
 * @param {TreeNode} node
 */
function treeToList(list, path, node) {
  if (node.child) {
    for (const child of node.child) {
      treeToList(list, path + node.name, child)
    }
  } else {
    list.add(path + node.name)
  }
}
